.container {
    width: 85%;
    margin: 50px auto;
    font-family: "微软雅黑", sans-serif;
}

h2 {
    text-align: center;
    color: #333;
}

/* 新增按钮样式 */
.add-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}
.add-btn:hover {
    background-color: #45a049;
}

/* 表单样式 */
.form-container {
    display: none;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}
.form-item {
    margin-bottom: 15px;
}
.form-item label {
    display: inline-block;
    width: 80px;
    text-align: right;
    margin-right: 10px;
}
.form-item input {
    width: 200px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-btns {
    margin-left: 90px;
}
.form-btns button {
    padding: 6px 12px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#submitBtn {
    background-color: #2196F3;
    color: white;
}
#cancelBtn {
    background-color: #f44336;
    color: white;
}

/* 表格样式 */
#studentTable {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
#studentTable th, #studentTable td {
    border: 1px solid #666;
    padding: 12px 8px;
}
#studentTable th {
    background-color: #e0f2fe;
    font-weight: bold;
    color: #222;
}
#studentTable tr:hover {
    background-color: #f0f9ff;
}

/* 操作按钮样式 */
.edit-btn {
    background-color: #ffc107;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}
.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
